<?php

class Feed extends AppModel
{
    var $name = 'Feed';
    var $displayField = 'name';
    var $validate = array(
        'name'  => VALID_NOT_EMPTY,
        'template' => VALID_NOT_EMPTY // FIXME find a way to ALWAYS set a default value with the <div id="slide"></div> for the template field of Feeds, AND check if the data contains such a field
    );

    var $hasMany = array('Slide' =>
                        array('className'  => 'Slide',
                              'conditions' => '',
                              'order'      => '',
                              'dependent'  => true,
                              'foreignKey' => 'feed_id',
                              'exclusive'  => false,
                              'finderSql'  => ''
                        ),
                       );
}



?>